After months of high-stakes negotiations, The Big Bang Theory has secured a two-season, 48-episode renewal at CBS, the network announced Monday. The pact ensures that TV’s No. 1 comedy — currently in its 10th season — will stick around through Season 12.

Late last month it was reported that a renewal deal between CBS and producer Warner Bros. hinged on cast members Mayim Bialik (Amy) and Melissa Rauch (Bernadette), both of whom were seeking salary parity with their much higher paid co-stars. While Jim Parsons (Sheldon), Kaley Cuoco (Penny), Johnny Galecki (Leonard), Simon Helberg (Howard) and Kunal Nayyar (Raj) had been pocketing a cool $1 million per episode, Bialik and Rauch were pulling in “just” $200,000 an episode. Per our sister site Variety, Parsons, Cuoco, Galecki, Helberg and Nayyar each volunteered to cut their per-episode fee by $100,000 to free up money to give Bialik and Rauch a raise.