Added cycle functionality to tgroup-switch.