Cryer's long run of unsuccessful TV projects finally ended in 2003. Against the wishes of CBS executives (who were aware of his past failures) and due to a friendship with Charlie Sheen, he was cast as Alan Harper on the hit comedy series "Two and a Half Men". (He had auditioned for the role of Gaius Baltar on the Sci-Fi Channel's reimagined "Battlestar Galactica" at around the same time, but the role went to James Callis.) Cryer earned seven Primetime Emmy Award nominations and two wins for his acting work on the show. In a comment on the show's high ratings, he said: "When you’re on a show that's fighting for survival every week, you stop trusting your instincts, because you think, ‘My instincts haven't worked so far.’ But when people clearly like the show and are watching it in great numbers, it takes a huge amount of pressure off you. It allows you to trust your instincts and go with what has worked for you before." After Sheen's departure from the series, Cryer's character became the show's main protagonist (with Ashton Kutcher being cast as the co-lead) throughout the final four seasons. Cryer is the only actor to have appeared in every episode of the series; Sheen was fired in March 2011 and Cryer's on-screen son Angus T. Jones left the series at the end of season 10, after describing the show as "filth" and calling himself a "paid hypocrite." (Jones did return for the series finale.)