Some more changes to the group system and to the packet handler.