All reasonable out-of-pocket expenses, costs, attorney’s fees and legal expenses, amounts advanced in performance of obligations of Borrower, and indemnification amounts owing by Borrower to Lender under or pursuant to this Loan Agreement, the Note, and/or any Security Documents shall be due and payable upon demand. If not paid upon demand, all such obligations shall bear interest at the default rate provided in the Loan Documents from the date of disbursement until paid to Lender both before and after judgment. Lender is authorized to disburse funds under the Note for payment of all such obligations. Payment of all such obligations shall be secured by the Collateral and by the Security Documents. All payments and recoveries shall be applied to payment of the foregoing obligations, the Note, and all other amounts owing to Lender by Borrower in such order and priority as determined by Lender. Unless provided otherwise in the Note, payments on the Note shall be applied first to accrued interest and the remainder, if any, to principal.