Criminal Minds” has finally been renewed for the 2016-2017 season, Variety has learned.

The long-running police procedural sat on the bubble, while CBS had given early renewals to many other staples on the schedule, but the Season 12 pickup was just a matter of time. Sources tell Variety that “Criminal Minds,” which is co-produced by ABC Studios, was was renewed at a lower license fee. Heading into its twelfth season, the procedural is expensive and financial discusses were reason for the holdup, as the show is a steady ratings performer.

The procedural had a strong finish to its eleventh season this Wednesday, as its 1.8 rating in adults 18-49 and nine million total viewers in same-day viewing matched its year-ago scores, even though it faced Fox’s megahit “Empire” this time around. The show is a top ten drama, averaging over 12 million viewers for Season 11, and ranks as CBS’s second highest-rated drama in adults 18-49 and adults 25-54.

CBS has ordered full season for the twelfth round, though no specific episode order has been given — this past season consisted of 22 episodes and recent seasons before were made up of 24.

This past TV season, “Criminal Minds” spun off a new series “Beyond Borders,” starring Gary Sinise. Though the show is doing alright, it’s certainly not a property that could have replaced the flagship show on CBS’s slate, and it still remains on the bubble. 

Joe Mantegna, Thomas Gibson, Matthew Gray Gubler, A.J. Cook and Kirsten Vangsness star in “Criminal Minds.” Shemar Moore exited the series this past season. Mark Gordon, Erica Messer and Breen Frazier are exec producers. ABC Studios and CBS Television Studios produce.

Rick Kissell contributed to this report.