Closes #59 Allow to specify group cardinality