first, to the payment of (A) all costs and expenses relating to the sale of the Security and the collection of all amounts owing hereunder, including fees and disbursements of the Agents, attorneys and other advisors for services rendered in connection therewith or in connection with any proceeding to sell if a sale is not completed, and (B) all charges, expenses and advances incurred or made by the Secured Parties (together with interest at the rate set out in Clause 5.2 (Interest) of this Agreement) (i) in order to protect the liens of the Security Documents or the security afforded thereby, (ii) for the care, safekeeping, protection or otherwise of any or all of the Security, or (iii) in any way relating to the rights, powers or remedies of the Secured Parties hereunder;