Fully Switched over Planner Code