New Line is in talks to land worldwide distribution rights to the Allan Loeb-penned “Collateral Beauty,” sources tell Variety. Will Smith has replaced Hugh Jackman as the lead in the PalmStar Media project, and Variety has learned that Rooney Mara, who was originally attached to play the female lead, is no longer with the project.

“Collateral Beauty” is the next film from “Me and Earl and The Dying Girl” director Alfonso Gomez-Rejon. The story follows a New York advertising executive (Smith) who experiences a deep personal tragedy. When his colleagues devise an unconventional plan to break him out of his depression, the ruse works — but not in a way that anyone imagined. PalmStar and Likely Story acquired the rights to the script in June, with PalmStar fully financing.

Jackman was originally on board the pic but was forced to leave the project due to scheduling conflicts with the third installment in “The Wolverine” franchise.

Principal photography is set to start in the fall. Anonymous Content’s Michael Sugar and Bard Darros are producing along with Loeb, with PalmStar CEO Kevin Frakes and Anthony Bregman exec producing.

The Hollywood Reporter first reported the news.