Last week, Justice League director Zack Snyder announced that he’d be stepping away from the movie after a terrible family tragedy. The Avengers director Joss Whedon will help finish the movie, and producer Charles Roven explained how that all went down in an interview with Variety at the Wonder Woman premiere.

“[Whedon] was already working with us on some of the scenes for the additional photography that we’re going to be doing shortly,” Roven explained. “It was fortunate that Zack convinced him, and he agreed, to step in and finish the movie and help Zack finish his vision. We’re excited about that.”

Producer Charles Roven talks about how Joss Whedon stepped into "help Zack [Snyder] finish his vision" for #JusticeLeague pic.twitter.com/5ph8YbrZnl — Variety (@Variety) May 26, 2017

Snyder hired Whedon to write some of those additional scenes, and then when he realized he couldn’t finish the movie himself, he convinced Whedon to take over the director duties as well.

Thanks to Whedon stepping up, Justice League is still on track for its November 17 release.