Add group_pairs/2, rotate/2.