Jason Schwartzman takes the lead in HBO's comedy pilot Bored to Death, written by Jonathan Ames.

According to The Hollywood Reporter, the pilot centers on Jonathan (Schwartzman), a struggling thirtysomething writer with a drinking problem in Brooklyn who, following a painful breakup with his girlfriend, decides to emulate his heroes from the novels of Raymond Chandler and Dashiell Hammett. He takes out an ad pretending to be a private detective and starts taking cases -- solving some and making others worse.

Production is slated for September in New York.