Added different mode

Added toggle to swtich between Cycle mode and CycleGroup mode.