But the new deal effectively keeps the Portugal international at the club until the end of his career.