I don't see the docs of `numGroups` and `groupIndex`.