Changed unconfirmed_plan to plan. More readable.