It’s one of the biggest deals, tying in one of the most prolific showrunners and creators in Hollywood and now the ink is dry, J.J. Abrams can dive in to his new role at WarnerMedia which could potentially include steering the destiny of DC Comics characters including Superman and Green Lantern.

It’s done! JJ Abrams and his Bad Robot have closed a five-year deal for him to keep his TV business and move his film business under the WarnerMedia umbrella. The wide-ranging pact, which runs through 2024, also includes games and digital content.

The JJ Abrams Sweepstakes started last fall, with a number of media congloms vying for his services in an all-encompassing deal expected to reach as much as $500 million. By June, WarnerMedia emerged as the frontrunner thanks largely to the shorthand Abrams had developed with the Warner Bros TV team over the past 13 years, and a massive financial commitment by parent WarnerMedia. It took a couple of more months to seal the deal, largely over intricacies involving ending Abrams’ Paramount Pictures movie pact. Under his exit agreement, Bad Robot will honor its existing Paramount obligations.