AMENDED AND RESTATED SETTLEMENT AGREEMENT