((a)) ** .—** 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—
((1)) any unpaid claim allowed under ;
((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)) ** .—** If a plan is confirmed under , 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)) ** .—** 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.