CBS’ modern Sherlock Holmes series Elementary will see a seventh season. Like with another just renewed veteran drama that had been on the bubble, Criminal Minds, CBS the network would not say whether it would be the series’ final season. There is no word yet on the fate of medical drama Code Black.

Elementary has not been a strong linear performer the last couple of seasons but it remains a major profit generator for CBS with lucrative off-network and international deals.

Last season, Elementary averaged so-so 7.4 million viewers, 1.2 in 18-49 Live+7 in the Sunday 10 PM time slot. Elementary has off-network and SVOD deals with WGN America, Hulu Plus and broadcast stations that fetch in as much as $3 million total per episode. It is a solid international seller for CBS TV Studios too, in part because of the central character’s global recognition. In May 2016, CBS Corp. CEO Les Moonves used Elementary as an example of a program ownership success story, telling investors that the show had “made approximately an $80 million profit for the corporation” the previous yea

That is why, after originally picking up Elementary last May with a 13-episode order for midseason,CBS in November ordered eight more episodes, taking its season from 13 to 21 episodes.

In its recent Season 6 premiere, Elementary drew 4.7 million viewers and a 0.6 in adults 18-49 (Live +same day), up from the Season 5 finale (4.1 million) and on par with its Season 5 average (4.8 mil/0.6).

Created by Robert Doherty, Carl Beverly and Sarah Timberman, Elementary stars Jonny Lee Miller as Detective Sherlock Holmes and Lucy Liu as Dr. Joan Watson in a modern-day drama about a crime-solving duo that cracks the NYPD’s most impossible cases. Aidan Quinn (Captain Thomas Gregson), Jon Michael Hill (Detective Marcus Bell) and Desmond Harrington (Michael) also star.

Elementary is produced by CBS Television Studios, with Doherty, Beverly, Timberman, Jason Tracey, Robert Hewitt Wolfe and Bob Goodman serving as executive producers.