Tony Shaloub

Tony Shalhoub has joined the cast of CBS' untitled comedy, formerly called The Ex-Men, TV Line reports.

The project, from How I Met Your Mother executive producer Rob Greenberg, stars Chris Smith as a man who moves into short-term housing populated mainly by divorced men after being left at the altar. Shalhoub will play Frank, a four-time divorcé who's a self-proclaimed ladies' man. He joins Kal Penn, who will play Gil, a guy caught having an affair and must live in the complex until his wife takes him back.

Kal Penn joins CBS' new comedy pilot Ex-Men

Shalhoub won three Emmys for his role on Monk.