Working on subgroup routines.