NBC has handed a pilot order to Rex Is Not Your Lawyer, a comedic drama about an attorney who suffers panic attacks and takes up coaching clients to represent themselves in court.

The project was written by actor Andrew Leeds and novelist David Lampson, who got their break as TV scribes in 2005 when their comedy script Stephen's Life beat out 10,000 other entries to win Bravo's reality series Situation: Comedy. Law & Order veteran Barry Schindel has come on board as showrunner on the new project.

As an actor, Leeds next appears in the season premiere of Fox's House, playing Dr. House's (Hugh Laurie) psychiatrist. Lampson's new novel, Impossible Things, is being published by Razorbill.