AMENDED AND RESTATED LOAN AGREEMENT between