CONSOLIDATED, AMENDED AND RESTATED NOTE