Jane Fonda and Lily Tomlin are reuniting for a Netflix comedy with an unexpected gay twist.

The actresses, who co-starred with Dolly Parton in the classic comedy film 9 to 5, will headline Grace and Frankie, a new single-camera sitcom expected to debut next year on Netflix.

According to The Los Angeles Times, adversaries Grace (played by Jane Fonda) and Frankie (Lily Tomlin) are unexpectedly brought together when their husbands announce that they are getting married to each other.

“The women find their lives both turned upside down and to their dismay, permanently intertwined,” Netflix said of the comedy. “Eventually, to their surprise, they find they have each other.”

Netflix chief content officer Ted Sarandos called the upcoming sitcom “warm, very funny and anything but wholesome.”

“Jane Fonda and Lily Tomlin are among the funniest and most formidable actresses ever and it's an incredible privilege to give them the opportunity to run riot on Netflix,” Sarandos said.