“Mom” Season 6 is ending on Thursday, but the CBS sitcom won’t be gone forever. The network renewed the series earlier this year.

It was revealed that CBS renewed “Mom” for both Season 7 and Season 8 in February, keeping “Mom” on the air through 2021. Stars Anna Faris and Allison Janney are signed on for both seasons.

Their contracts were set to expire with this season, and the renewal reportedly depended on negotiations. Deadline reports that both women were making under $200,000 per episode. They received pay parity with the new contracts and will each start raking in about $350,000 per episode.

While CBS did not confirm the salaries, the network noted at the time of the renewal that they expected the series to be around for quite a while.

“We’re exceptionally proud to have Mom on our air; a high-quality, signature comedy with characters viewers love, that also brings strength and stability to our lineup,” Kelly Kahl, president of CBS Entertainment, said in a press release. “Under Chuck Lorre’s extraordinary leadership and with his outstanding writing and production team, we look forward to having ‘Mom’ on CBS for many years to come.”

The ratings for “Mom” made it clear that the show wasn’t in any real danger of cancellation. The show has been averaging 7.987 million viewers throughout Season 6, with 1.21 in the demo, according to TV Series Finale. That makes it the second highest-rated multi-camera sitcom on CBS, second only to “The Big Bang Theory,” which is in its final season.

In Thursday’s Season 6 finale, “Mom” will show Christy (Faris) celebrating her sober birthday, but she’ll start struggling after she learns her sponsor Nora (Yvette Nicole Brown) is moving away. Meanwhile, Bonnie (Janney) and Adam (William Fichtner) get into an argument that leads them to “make a hasty decision.”

The “Mom” Season 6 finale airs Thursday at 9 p.m. EDT.

Mom cancelled or renewed
"Mom" has been renewed for two more seasons on CBS. Michael Yarish/Warner Bros. Entertainment Inc.