The Office star/writer Mindy Kaling is the latest actor to join the Judd Apatow-produced comedy Five Year Engagement. The cast now includes Jason Segel, Emily Blunt, Alison Brie, Chris Pratt, Rhys Ifans, Lauren Weedman, David Paymer, Kevin Hart and Jacki Weaver. Directed by Nicholas Stoller (Get Him to the Greek), the film follows a young couple’s (Segel and Blunt) extended engagement and the bumps and bruises that they undergo along the way.

Variety reports that Kaling will play one of Ifans’ grad students. Stoller previously directed Segel in Forgetting Sarah Marshall, and the two co-wrote this project together.