AMENDED AND RESTATED MASTER SERVICE AGREEMENT