Amended and Restated Term Note