Added some randomization to group behavior.