Added option to fix group size to a constant.