Actor Tyler Perry has officially joined the cast of Brain on Fire which stars Chloe Grace Moretz.

The film, directed by Gerard Barrett, is based on Susannah Cahalan’s “Brain on Fire: My Month of Madness” and it is about a rising journalist at the New York Post who falls victim to an inexplicable illness. This illness causes her to hear voices, hallucinate, and have battling bouts of paranoia and lash out violently. A last-minute intervention by one doctor gives her a diagnosis and the chance to rebuild her life. Perry is set to play her boss at the New York Post.

Broad Green Pictures will distribute Brain on Fire in the United States, while their partner Mister Smith Entertainment will sell the international rights. Charlize Theron will produce through her Denver and Delilah production company alongside Foundation Features. Previously announced cast members include Thomas Mann, Jenny Slate, Richard Armitage and Carrie-Anne Moss. Filming is currently happening out in Vancouver. A release date has yet to be announced