Morgan Freeman is attached to star and Peter Segal will direct an untitled comedy spec by Josh Cagan and Greg Coolidge that Warner Bros. has just acquired in a deal, according to The Hollywood Reporter.

The script, which had a working title of Dirty Old Men, revolves around an aging playboy who finally meets the love of his life and his best friend and wingman for the past 40 years (Freeman) who does everything to break up the new couple. The tone is described as similar to Wedding Crashers and The 40-Year-Old Virgin.

The studio would love to have Jack Nicholson reteam with Freeman on the film; the pair starred in Warners' 2007 hit comedy The Bucket List. Nicholson is not attached to the project but is aware of it.

No production date has been set.