Recoded Group.pm for more performance (step 1).