 At one point, Ricky Gervais (qv) was cast in the film as an ally  to Ethan Hunt. But due to various production and casting changes,  Gervais had to pull out of the film and was replaced by  Simon Pegg (qv).