"It’s taken 17 years but I can finally answer the #1 question I get, 'Are you making a f#&@ing sequel to Unbreakable or what?' " he tweeted. "My new film is the sequel to #Unbreakable AND #Split. It was always my dream to have both films collide in this third film."

Unbreakable, which Shyamalan released in 2000 one year after skyrocketing to stardom with The Sixth Sense, deconstructed the superhero genre and remains one of his best-regarded works.

Shyamalan is coming off a hot streak, with his latest movie, Split, earning more than $275 million worldwide on a $9 million budget. He has been tweeting progress on a Split follow-up for several months. His 2015 found-footage film The Visit was also a box-office hit and well-liked by critics.

[Warning: spoilers ahead for Split.]

Split starred James McAvoy as a kidnapper with multiple personalities and Anya Taylor-Joy as Casey Cooke, one of the young women who must fight to survive his capture.

With Split, Shyamalan pulled off perhaps his greatest twist yet.

A last-minute cameo from Willis revealed that Split is set in the same universe as Unbreakable. In January, Shyamalan revealed to Heat Vision that Split villain Kevin Wendle Crumb (McAvoy) was actually included in his first drafts of Unbreakable, but had to be cut out. He also revealed he was hoping to write and direct a third film that would include characters from both films.

Shyamalan revealed Wednesday that both McAvoy and Taylor-Joy will return for Glass. Here's the logline Universal has released: "Following the conclusion of SPLIT, GLASS finds Dunn pursuing Crumb’s superhuman figure of The Beast in a series of escalating encounters, while the shadowy presence of Price emerges as an orchestrator who holds secrets critical to both men."

Glass will be produced by Shyamalan and Jason Blum, with Ashwin Rajan and Marc Bienstock, and Steven Schneider, who will executive produce.

Here's Shyamalan's announcement:

It’s taken 17 years but I can finally answer the #1 question I get, “Are you making a f#&@ing sequel to Unbreakable or what?” — M. Night Shyamalan (@MNightShyamalan) April 26, 2017

My new film is the sequel to #Unbreakable AND #Split. It was always my dream to have both films collide in this third film. — M. Night Shyamalan (@MNightShyamalan) April 26, 2017

The iconic Bruce Willis returns as David Dunn — M. Night Shyamalan (@MNightShyamalan) April 26, 2017

The incomparable @SamuelLJackson will return as Elijah Price/Mr. Glass — M. Night Shyamalan (@MNightShyamalan) April 26, 2017

The virtuoso #JamesMcAvoy returns as Kevin Wendell Crumb, Patricia, Dennis, Hedwig, Barry, Jade, Orwell, The Beast, Heinrich, Norma, Pol- — M. Night Shyamalan (@MNightShyamalan) April 26, 2017

And the prodigy, @AnyaTaylorJoy will return as Casey Cooke — M. Night Shyamalan (@MNightShyamalan) April 26, 2017

I’m reteaming with my partners @jason_blum and @Universalpics for this crazy comic book thriller. — M. Night Shyamalan (@MNightShyamalan) April 26, 2017

And the film is called GLASS… — M. Night Shyamalan (@MNightShyamalan) April 26, 2017