Add the planning and clean the plan file.