Azaria produced and starred in the sitcom "Imagine That" in 2002, replacing "Emeril" mid-season in the NBC lineup. He played Josh Miller, a comedy writer, who "transformed" each episode into a character Miller has imagined, "provid a humorous outlet for his frustrations at home and work". Production closed after five episodes and it was canceled after just two aired, due to poor critical reaction and ratings. Azaria later commented on the show: "I wanted to do something really truthful and interesting and impactful. We had a bunch of executives sitting in the room, all agreeing that "The Larry Sanders Show" was our favorite thing on television, but we couldn't do it on NBC, and nor would we want to from a business standpoint; it simply wouldn't make enough money. By the time it aired, the writing was sort of on the wall, and I don't blame them at all. It was apparent it wasn't working."