Updated createPlan to have interval_count