Amended and Restated LOAN AGREEMENT