Returning to live-action television in 2011, Azaria starred in the NBC sitcom "Free Agents", a remake of the British series of the same name. He played Alex Taylor, a recently divorced public relations executive "who is missing his kids and trying to keep himself together", and ends up sleeping with a co-worker (Kathryn Hahn). Azaria also served as a producer on the show. He was apprehensive about the project, disliking the lengthy schedule required of a lead actor in a single-camera series, and favoring the "sensibility" of cable shows. However, he liked the script and executive producer John Enbom's previous series "Party Down" and decided to accept the part. Despite Azaria mounting a campaign on Twitter to save it, the series was canceled after four episodes due to low ratings. In 2014, Azaria had a recurring role in the second season of Showtime's "Ray Donovan", playing FBI agent Ed Cochran.