It was a bittersweet The Office series finale as Steve Carell reprised the character of Michael Scott during Thursday night’s episode.

After a season-long back and forth about whether or not Michael Scott would return to The Office series finale, it was confirmed last week that Carell would in fact be bringing the character back one more time. Hypable also learned exclusively that Steve Carell was on set during the last days of filming.

Last night, Michael Scott, the beloved character who arguably made The Office the hit NBC comedy that it was, returned for one last goodbye. Watch the scene below in which he surprises Dwight at his wedding:

Michael appears in a couple other scenes later on in the episode.

Last night’s series finale of The Office, simply titled “Finale,” ended a nine season run of a show that changed the way television comedies were made throughout the last several years. While many people thought The Office should have ended when Steve Carell said goodbye, the show stuck around for a few more hilarious and memorable seasons.

Did you catch the series finale of The Office? Were you as satisfied as we were by his short but perfect appearance?

The Office’s series finale had impressive ratings, bringing in roughly 5.4 million people – a record for season 9.