By Derek Lawrence
Updated July 25, 2016 at 09:06 PM EDT
Jim Spellman/WireImage

Samira Wiley may have left prison, but her next gig doesn’t sound much more comfortable.

The Orange Is the New Black actress has joined Elisabeth Moss in Hulu’s upcoming drama series The Handmaid’s Tale, EW confirms. The series is based on the popular dystopian novel from Margaret Atwood, who will serve as a consulting producer.

The story is set in Gilead, a totalitarian society in the former United States, which is plagued by environmental disaster and a plunging birth rate. With few women left fertile, they are forced into sexual servitude in a last ditch effort to repopulate the world.

Moss stars as Offred, a handmaid in the Commander’s household, who while trying to survive in this difficult world is also attempting to find her daughter. Wiley will play Moira, Offred’s best friend from college and fellow handmaid-in-training. The actress just completed a four-season run on the Netflix hit Orange Is the New Black and will have a recurring role on the third season of FXX’s You’re the Worst.

The 10-episode series, which will also costar Max Minghella (The Social Network) and Ann Dowd (The Leftovers) will premiere in 2017.

Hollywood Reporter first reported the news.