(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—
(2) any payment made for the purpose of providing adequate protection of an interest in property due to the holder of a secured claim; and
(3) any fee owing to the trustee.
(b) Other Plans.— If a plan is confirmed under section 1191(b) of this title, except as otherwise provided in the plan or in the order confirming the plan, the trustee shall make payments to creditors under the plan.
(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.