“Brooklyn Nine-Nine” fans still remember the pain of last May when Fox canceled the show for about 48 hours before NBC saved it. Luckily, that isn’t happening in 2019. “Brooklyn Nine-Nine” has been renewed for Season 7.

The Michael Schur-produced sitcom avoided cancellation last week when NBC announced that they’d bring the Andy Samberg-led show back. However, they still aren’t reverting back to the 22-episodes-per-year format. Instead, “Brooklyn Nine-Nine” will remain a midseason replacement. NBC ordered 13 episodes for Season 7.

It’s possible that number could grow. Last year, NBC ordered 13 episodes for Season 6 but they upped the total to 18 in the fall.

It isn’t on the schedule for fall, but it will likely follow the same format and take the spot of “The Good Place,” which also utilizes shorter seasons.

“Brooklyn Nine-Nine” is actually performing better on NBC than it did on Fox. According to TV Series Finale, Season 6 is averaging 2.34 million viewers compared to 1.75 million in Season 5. The demo, however, dropped a hair to 0.72 after being 0.74 on Fox. Still, NBC makes more money off “B99” because Universal Television, which shares a parent company with the network, produces it.

Before fans can wonder what will happen next season, they’ll first have to get through tonight’s two-part finale.

The first half hour is titled “Sicko.” According to the synopsis, “Jake (Samberg) and Charles (Joe Lo Truglio) investigate a dangerous serial killer. Holt (Andre Braugher) continues to spar with his rival, Commissioner Kelly (Phil Reeves).”

The second half, airing at 9:30 p.m. EDT, is titled “Suicide Squad” and it sounds intense. “Desperate circumstances call for desperate measures, as Jake, Holt, Amy (Melissa Fumero), Terry (Terry Crews), Rosa (Stephanie Beatriz) and Charles must ally themselves with old enemies,” the logline reveals.

The Season 6 finale of “Brooklyn Nine-Nine” airs Thursday on NBC.

Is Brooklyn 99 canceled or renewed
"Brooklyn Nine-Nine" will return for Season 7, but it likely won't air until 2020. Trae Patton/NBC