NBC is expanding its relationship with Seth Meyers and Lorne Michaels.

The network has handed out a pilot order to an untitled comedy from Meyers and Saturday Night Live writer Mike O'Brien, The Hollywood Reporter has learned.

Executive produced by SNL mastermind Michaels, the comedy revolves around a hilariously cynical Ivy League professor who loses out on his dream job and goes to work as a high school biology teacher. There, he imposes his unorthodox teaching style and uses the kids to plot out revenge on those who wronged him.

The project, produced by Universal Television and Michaels' Broadway Video, was previously titled AP Bio and landed at NBC in September. O'Brien will pen the script for the single-camera comedy, which reunites him with SNL grad-turned-Late Night host Meyers. Broadway Video's Andrew Singer executive produces alongside Late Night writer/exec producer Mike Shoemaker.

This is NBC's second comedy pilot order of the season, joining Kourtney Kang's (Fresh Off the Boat) untitled family comedy. The Meyers entry comes as workplace comedies are expected to be a hot property this pilot season. Also look for NBC to add more multicamera fare as the network seeks a companion to pair with its Will and Grace 10-episode revival.

O'Brien's credits also include the Michaels-produced FXX comedy Man Seeking Woman. He has been with SNL since 2009.