What a difference a few months makes. After a surprise bump in ratings during summer, Wayward Pines has been renewed for a 10-episode season to air next summer, Fox announced Wednesday.

The psychological thriller, which follows what happens when a Secret Service agent (played by Matt Dillon) goes looking for two missing federal agents, will have M. Night Shyamalan back as its executive producer. Chad Hodge, however, who adapted Blake Crouch's best-selling books for the show, won't be back, according to Deadline. Mark Friedman, creator of the fantasy drama Believe, will become Wayward's new showrunner.

Why Wayward Pines isn't like every other mystery show

"Wayward Pines was a huge hit for us this past summer," Fox president David Madden said in a statement. "Season two is going to take the suspense, the vision of the future and the haunting character drama to whole new levels." The season will start off with anew arrival in Wayward Pines, who finds himself in the middle of a rebellion as residents fight over how to save the human race.

Given that Wayward Pines took two years to make it to the screen, it's great to see it enjoying such success. Are you excited Wayward Pines is coming back?