Ezra Miller, who starred in the adaptation of Perks of Being a Wallflower, has been cast as the lead in DC Comics' forthcoming The Flash movie.

Ezra Miller Lands 'The Flash' Role

Warner Bros. chairman Kevin Tsujihara announced that they’d be making a feature film about The Flash during Time Warner’s earnings meeting Wednesday, according to The Hollywood Reporter. Tsujihara also announced that Miller had landed the part of the DC Comics superhero. The movie is set to hit theaters in 2018.

Flash is the superhero alter ego of Barry Allen, a young man who has both super speed and reflexes. As a member of the Justice League it stands to reason that Miller will also be appearing in some of the upcoming Justice League movies, the first of which is slated to come out in 2017.

On the small screen, CW launched The Flash TV series this year, starring Glee actor Grant Gustin in the lead role. Thus far, the show has been a hit with audiences and will more than likely be renewed for a sophomore season.

At the earnings meeting on Wednesday, Tsujihara announced the release years for DC’s content through 2020 – Suicide Squad (2016), Wonder Woman (2017), Justice League Part One (2017), Aquaman (2018), Shazam (2019), Justice League Part Two (2019), Cyborg (2020) and Green Lantern (2020).

In addition to Perks of Being a Wallflower, which he starred in alongside Logan Lerman and Emma Watson, Miller has appeared in We Need to Talk About Kevin, Beware the Gonzo and Afterschool.