The upcoming limited series adaptation of Stephen King's "The Stand" is getting a new ending — from the author himself.

The CBS All-Access project also added four actors to the cast in key roles, including James Marsden and Amber Heard.

"The Stand" is set in a world decimated after an apocalyptic pandemic 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. But they must contend with a man of unspeakable powers: Randall Flagg, the Dark Man.

King will write the show's finale episode, which will include "a new coda that won’t be found in the book” that will reveal more about what happened to the survivors.

As for the new cast members, they are led by "Westworld" star Marsden, who will portray Stu Redman, “an ordinary working-class factory man in an extraordinary situation with a damaged quality to him that belies his exterior.”

"Aquaman" star Heard will play Nadine Cross, “a deeply conflicted woman who feels the consequences of her actions, but is still compelled by her allegiance to Randall Flagg, the Dark Man.”

Odessa Young ("A Million Little Pieces") will play Frannie Goldsmith, “a pregnant young woman navigating a strange new world, who also has the foresight to recognize that there is evil lurking beyond the Dark Man.”

Henry Zaga ("13 Reasons Why") will portray Nick Andros, “a young deaf and mute man who finds himself in a position of authority when the unthinkable happens. He has a habit of risking his own well-being for the safety of others.”

No premiere date has been set by CBS All-Access.