Amended and Restated Master Custodian Agreement