Yeah looks to me as if Liverpool have handled a difficult situation well here.
I reckon they must have said to his agent last summer 'Get him to sign this improved deal and we'll let him leave overseas if the right offer comes in next year'
Looks like this deal benefits everyone.