AMENDED AND RESTATED Consulting Agreement