Added ability to bound generated group sizes.