CONSOLIDATED, AMENDED AND RESTATED LOAN AGREEMENT BY AND BETWEEN