Amended and Restated Loan Agreement