The Spaniard has put pen to paper on a long term contract to extend his stay at the Etihad Stadium, as the club look to ward off potential interest from Real Madrid.