Ed Begley Jr. is set for CBS's new comedy Gary Unmarried, joining Jay Mohr who stars as a newly divorced dad.

According to The Hollywood Reporter, Begley will play the family's intelligent but pompous therapist who counseled Gary and his wife Allison (Paula Marshall) during their divorce and is now engaged to Allison. The role was played in the pilot by Larry Miller.

Begley's most recent credits include the feature Pineapple Express and HBO's 2000 presidential election drama Recount, in which he played attorney David Boies.