Continued work on createGroupsAutomatically functionality.