First Amended and Restated Loan Agreement