Mike Flanagan has been tapped to direct the film adaptation of Stephen King’s “Doctor Sleep” for Warner Bros., an individual with knowledge of the project told TheWrap.

In the sequel to “The Shining,” Danny Torrance is in his 40s when he encounters the same demons his father did in the previous book and subsequent film adaptation. King published “Doctor Sleep” in 2013 as a sequel to his 1977 bestseller “The Shining.”

Flanagan will also rewrite the script, originally adapted by Akiva Goldsman. Trevor Macy, Flanagan’s producing partner, will produce alongside Vertigo Entertainment’s Jon Berg, and Goldsman will also serve as executive producer.

Also Read: Paramount Picks Directors for Remake of Stephen King's 'Pet Sematary'

Flanagan’s director credits include “Oculus,” “Before I Wake” and “Ouija: Origin of Evil.” He has also served as a producer on films like “Absentia” and TV shows like “The Haunting of Hill House.”

Most recently, King’s novel “It” was adapted into a movie, with its sequel on the way. Paramount also recently picked the directors for their new iteration of his novel “Pet Sematary,” which filmmakers Kevin Kölsch and Dennis Widmyer attached to the project.

Also Read: Stephen King Adaptation 'The Mist' Canceled by Spike After One Season

“Castle Rock,” the new Hulu Original drama series based on King’s stories, is also set for release this year.

Flanagan is represented by WME, Novo and Joel VanderKloot.