By Dan Snierson
November 07, 2014 at 12:00 PM EST
Charley Gallay/Getty Images

Analyze this: Ted Danson will play a psychiatrist in an episode of American Dad.

EW has learned exclusively that the Cheers vet, who currently stars in CSI, will voice the role of “Dr. Ray,” a shrink that Stan visits in the wake of a near-death experience. And we do mean shrink. “He introduces Stan to the concept of miniatures, and Stan is so caught up in the idea that he uses CIA technology to shrink himself into the miniature world where it’s all safe and protected,” executive producer Matt Weitzman tells EW.

Danson is not a psychiatrist, but he has played one on TV before as the star of the 2006 ABC sitcom Help Me Help You.

Danson’s episode will air sometime in early 2015 on TBS, the new home for the animated sitcom. Dean Norris of Breaking Bad/Under the Dome fame pops up on Monday’s episode as Stan’s new boss.