Undeclared grad Jay Baruchel is resuming his TV studies, signing on to star in the FX comedy pilot Man Seeking Woman, TVLine has learned.

Based on Saturday Night Live writer Simon Rich’s book, The Last Girlfriend on Earth, the potential series is described as “a sweet and absurd look at the life-and-death stakes of dating.”

RELATED | Pilot Season 2014: Scoop on This Fall’s (Possible) New Shows and Who’s Starring in Them

Baruchel will play Josh Greenberg, a naive romantic on a desperate quest for love. When his longtime girlfriend dumps him, Josh enters the dating scene, a nightmarish hellscape of untold horror.

The 29-year-old Rich — the second youngest writer ever hired by SNL — penned the script and will serve as an EP alongside his SNL boss Lorne Michaels.

Baruchel’s post-Undeclared career credits include the films Knocked Up, Tropic Thunder and last summer’s sleeper This Is the End. He next appears in the upcoming Robocop.