Maggie Gyllenhaal has stepped in to replace Toni Collette in Sam Mendes' untitled relationship comedy for Focus Features.

According to Variety, the film stars John Krasinski and Maya Rudolph and is about a young couple who travel around the U.S. searching for a place to put down roots. Dave Eggers and wife Vendela Vida penned the original screenplay.

Gyllenhaal will play a bohemian college professor who is an old friend of the character played by Krasinski.

Collette dropped out of the film due to scheduling delays on the shoot, which recently got under way in Connecticut. Gyllenhaal begins filming her role next week.