Amended and Restated Master Agreement