Jenna Elfman has signed on for the lead in the CBS comedy pilot Accidentally on Purpose.

According to Variety, Elfman will play a femme movie critic in San Francisco who gets pregnant after a one-night stand and decides to raise the child with its much-younger father.

Accidentally on Purpose hails from BermanBraun and CBS Paramount Network TV. Pilot was penned by Claudia Lonow, who exec produces with Gail Berman and Lloyd Braun.