Implement `singleGroups` option
fixup! Correct typo
fixup! Correct typo in unit tests