Pam trains a temporary worker to take her place while she is on maternity leave, and enlists Dwight's support when she tries to show that Jim finds her replacement attractive. Meanwhile, Robert surprises Andy, Kevin, and Darryl when he asks to join their band.