(a) Retention and Distribution by Trustee.—Payments and funds received by the trustee shall be retained by the trustee until confirmation or denial of confirmation of a plan. If a plan is confirmed, the trustee shall distribute any such payment in accordance with the plan. If a plan is not confirmed, the trustee shall return any such payments to the debtor after deducting—
any unpaid claim allowed under section 503(b) of this title;
any payment made for the purpose of providing adequate protection of an interest in property due to the holder of a secured claim; and
any fee owing to the trustee.
(b) Other Plans.—
(c) Payments Prior to Confirmation.—
Prior to confirmation of a plan, the court, after notice and a hearing, may authorize the trustee to make payments to the holder of a secured claim for the purpose of providing adequate protection of an interest in property.