Mistake-strewn Ivory Coast laboured to an opening win over Togo and Tunisia's artful midfielder Youssef Msakni struck late to deny Algeria in football's Africa Cup of Nations in South Africa.
Didier Drogba's Ivorians, favourites to finally land the continental showcase, were on course for a surprise draw in Rustenburg, after Jonathan Ayite cancelled out Manchester City midfielder Yaya Toure's opener.
But another of the Elephants' Premier League stars, Gervinho, struck with two minutes left to seal all three points for Sabri Lamouchi's side to put them top of Group D.