Early this year, CBS All Access gave a 10-episode series order to a new adaptation of Stephen King‘s 1978 novel “The Stand,” with Josh Boone (who at one point was going to adapt the post apocalyptic novel as a feature film) on board to co-write the series and also to direct. And we’ve learned something very exciting tonight: Stephen King wrote the finale!

As reported by Deadline, CBS All Access announced tonight that King has written the last episode of the limited series, providing the story with a brand new ending.

“For fans of the book who have wondered what became of the survivors of the stand, this episode will contain a story that takes us beyond the book to answer those questions,” CBS All Access EVP Julie McNamara said. “A continuation to The Stand, I can’t wait to share that with the world.”

Deadline’s Nellie Andreeva notes, “I hear the new material will pick up right after the events in the novel. The script is still being written but I hear the followup will be a substantial part of the final episode, not a brief epilogue at the end.”

King tweeted tonight, “The script for that final episode is written. I was glad Josh Boone gave me the chance, because that final story has been in my mind for 30 years.”

James Marsden, Amber Heard, Odessa Young and Henry Zaga will star.

The series will bring to life King’s vision of a world decimated by plague and embroiled in an elemental struggle between good and evil. The fate of mankind rests on the frail shoulders of the 108-year-old Mother Abagail and a handful of survivors. Their worst nightmares are embodied in a man with a lethal smile and unspeakable powers: Randall Flagg, the Dark Man.