Working version of groupped indexes.