The fact that Ahmadinejad has been allowed to serve out his entire second term – an outcome that the media often doubted – reflects the importance to Khamenei of maintaining an image of a stable Iran. But achieving that goal will require Khamenei to account for Ahmadinejad’s unpredictability.