By Devan Coggan
Updated November 10, 2015 at 11:11 PM EST
Credit: Ian Gavan/Getty Images

David Frankel is in early talks to direct New Line’s upcoming drama Collateral Beauty, starring Will Smith.

Frankel is set to replace Me and Earl and the Dying Girl director Alfonso Gomez-Rejon, who was previously attached to the project but departed in October.

Collateral Beauty, which was scripted by Allan Loeb, stars Smith as an advertising executive who sinks into depression after personal tragedy. His coworkers come up with an unconventional idea to cheer him up, with unexpected results. Smith replaces Hugh Jackman, who was originally attached to the lead role. He exited in July, reportedly due to scheduling conflicts with the next Wolverine movie. Rooney Mara was also set to star but has since left the project.

Frankel is best known for directing Marley & Me and The Devil Wears Prada, as well as the Entourage pilot and multiple episodes of Sex and the City.