Reworked 'grp' somewhat.