Filing triggers an automatic stay that halts foreclosure proceedings. The repayment plan can then include past due mortgage payments so you can catch up over time.