AMENDED AND RESTATED AGENCY AGREEMENT