Added check of max_group_number for adding new participants to groups