Emma Stone and Jonah Hill were gearing up to star in Cary Fukunaga’s “Maniac,” a half-hour episodic series from Paramount TV and Anonymous Content but the two production companies decided not to pursue the dark comedy series and sold it. The good news is, Netflix has secured “Maniac” and is finalising a straight-to-series 10 episode order, reports Deadline.

The plot of “Maniac” is based off a 2014 Norwegian series of the same title about a guy (Jonah Hill) who escapes to a fantasy world in his dreams where he is a hero. In reality, he is locked up in a mental institution. Emma Stone will play a fellow mental patient. Fukunaga will likely be directing all of the episodes and Variety reported that the show has yet to secure a writer.

Emma Stone and Jonah Hill, who have starred together in Greg Mottola’s high school comedy “Superbad,” will be the executive producers for the series along with Fukunaga. Anonymous Content’s Michael Sugar and Doug Wald will also act as producers on the show with Ashley Zalta.

This will be Fukunaga’s second team-up with Anonymous Content. He directed the entire first season of “True Detective” which also had some very high profile actors onboard like Matthew McConaughey, Colin Farrell, Rachel McAdams, and Woody Harrelson. Fukunaga won an Emmy Award for it. Anonymous Content recently produced the Oscar-winning movie “Spotlight” which also starred Rachel McAdams.

Jonah Hill will be starring in the forthcoming Jump Street/Men in Black crossover movie while Emma Stone will portray tennis great Billie Jean King in “Battle of the Sexes” opposite Steve Carell. Fukunaga is currently working on the TNT drama series “The Alienist” starring Garrett Hedlund. Collider predicts that the project won’t begin until late 2017.

The summary of the original “Maniac” TV series according to IMDB is as follows: “Maniac is the story of Espen, a man in his thirties, who is loved by everyone. Every day is a party and there’s no limit to what he experiences. We meet Espen in various situations where everything is amazing and whatever happens, Espen knows how to handle it. It is simply too good to be true.

Espen has escaped into his own head and where his life is a fantastic fantasy world. In real life, he is a patient in the psychiatric ward. What would you choose if you were in Espen’s situation – to be a fantasy hero or an everyday loser?”