Not too good at this kinda stuff...
Look in code for grouped/ungrouped. thats all. (Don't ask why this is a remix of the puzzle. Just don't do it.)