Relativity Media has bought U.S. distribution rights to Mike Flanagan’s horror-thriller “Somnia,” starring Kate Bosworth, Thomas Jane and Annabeth Gish.

Production began in November. “Oculus” director Mike Flanagan came on board to helm “Somnia” during the Toronto Film Festival.

Relativity is opening “Oculus” on April 11 in the U.S. at about 2,500 locations. The studio has made a wide-release commitment to “Somnia” and it’s anticipating a fall release.

Producers on “Somnia” are Intrepid’s Trevor Macy, along with William D. Johnson and Sam Englebardt of Demarest Films, which will produce and co-finance with MICA Entertainment. Mali Elfman and D. Scott Lumpkin are exec producing.

“Somnia,” written by Flanagan and Jeff Howard, centers on an orphaned child whose dreams and nightmares manifest physically as he sleeps. Flanagan and Howard also co-wrote “Oculus,” which was acquired for the U.S by Relativity with Jason Blum’s Blumhouse.

In addition to Bosworth and Jane, “Somnia” stars Jacob Tremblay as the child.

Paradigm represented the domestic rights alongside the law film Reder and Feig. Sierra/Affinity is handling international rights.

News was first reported on Deadline.com.