Mofified groupbyiterator so groups can be skipped