Costs and Expenses; Indemnification Agent may incur and pay Lender Group Expenses to the extent Agent reasonably deems necessary or appropriate for the performance and fulfillment of its functions, powers, and obligations pursuant to the Loan Documents, including court costs, attorneys’ fees and expenses, fees and expenses of financial accountants, advisors, consultants, and appraisers, costs of collection by outside collection agencies, auctioneer fees and expenses, and costs of security guards or insurance premiums paid to maintain the Collateral, whether or not Borrowers are obligated to reimburse Agent or Lenders for such expenses pursuant to this Agreement or otherwise. Agent is authorized and directed to deduct and retain sufficient amounts from payments or proceeds of the Collateral received by Agent to reimburse Agent for such out-of-pocket costs and expenses prior to the distribution of any amounts to Lenders (or Bank Product Providers). In the event Agent is not reimbursed for such costs and expenses by the Loan Parties and their Subsidiaries, each Lender hereby agrees that it is and shall be obligated to pay to Agent such Lender’s ratable thereof. Whether or not the transactions contemplated hereby are consummated, each of the Lenders, on a ratable basis, shall indemnify and defend the Agent-Related Persons (to the extent not reimbursed by or on behalf of Borrowers and without limiting the obligation of Borrowers to do so) from and against any and all Indemnified Liabilities; provided, that no Lender shall be liable for the payment to any Agent-Related Person of any portion of such Indemnified Liabilities resulting solely from such Person’s gross negligence or willful misconduct nor shall any Lender be liable for the obligations of any Defaulting Lender in failing to make a Revolving Loan or other extension of credit hereunder. Without limitation of the foregoing, each Lender shall reimburse Agent upon demand for such Lender’s ratable share of any costs or out of pocket expenses (including attorneys, accountants, advisors, and consultants fees and expenses) incurred by Agent in connection with the preparation, execution, delivery, administration, modification, amendment, or enforcement (whether through negotiations, legal proceedings or otherwise) of, or legal advice in respect of rights or responsibilities under, this Agreement or any other Loan Document to the extent that Agent is not reimbursed for such expenses by or on behalf of Borrowers. The undertaking in this Section shall survive the payment of all Obligations hereunder and the resignation or replacement of Agent.