This week's episode of "Brooklyn Nine-Nine" season 5 further proved why it's one of the most underrated workplace comedies on TV right now, and also prove why viewers needed a fifth season. This week's episode titled "HalloVeen" marked the fifth Halloween Heist, after Jake, Captain Holt, Gina, and Amy won in the last four years. This year, the show honored the yearly tradition but threw in a pleasant and tear-jerking twist that put Andy Samberg's Jake Peralta on one knee, clutching a ring, proposing to a shaken Amy (Melissa Fumero). The perfectly executed proposal was heartwarming at best—Jake proposed to Amy in the very room that they shared their first real, honest kiss during the season 2 finale: in the evidence locker.

Additionally, the proposal came straight out of left field, as even viewers did not see it coming. Co-creator Dan Goor recently talked about how they planned the proposal and the writers' trajectory for Jake and Amy throughout the years.

The 'perfect way' to propose to Amy Santiago

Detective Amy Santiago loves puzzles, and she loves to win. That's why Dan Goor and the "Brooklyn Nine-Nine" season 5 writers thought it would be great to have Jake propose to Amy during the Halloween Heist. Goor admitted to Entertainment Weekly that it was the "perfect way" to propose to Amy. In fact, it was a unanimous decision among all the writers to have Jake propose to Amy now, and not just because he just got out of jail.

Goor explained that from the very beginning, "Our philosophy on Jake and Amy has always been to play their relationship as realistically as possible." He also explained that Jake is now "definitely in a better place to make a huge life decision" following his stint in jail, but the proposal was not a result of his time in prison, "it just caused a delay in Jake’s plans."

Throwback Jake and Amy

This week's episode of "Brooklyn Nine-Nine" season 5 also gave viewers a glimpse of Jake and Amy from eight years ago, when Amy first started working at the 99th precinct.

The flashback showed Amy with shorter hair and Jake with longer hair, much like the hairstyle Andy Samberg's sported during his "Saturday Night Live" days. The big question now is, when is the wedding? According to Dan Goor, they plan to have the wedding during this current season of the FOX comedy, but they haven't really plotted an episode just yet. Viewers can catch Jake and Amy on "Brooklyn Nine-Nine" season 5, which airs on FOX on Tuesdays at 9:30 p.m.