Javier Mascherano has agreed to extend his contract with Barcelona amid transfer rumors this summer linking him to Juventus.

Mascherano has a €100 million release clause in his current deal which runs until 2018, but reports emerged recently claiming that advanced talks had taken place with Juve about a transfer earlier this summer.

Albert Soler, Barca's director of professional sports, said that an agreement had been reached on a new deal which would run until 2019 and would include improved terms for the player.

"Javier Mascherano and the club have agreed to renew his contract," Soler at the news conference presenting Andre Gomes as a new Barca player, "He will stay at the club for the next three years, with his contract being improved. We are all happy with this."