Add new group method based on distance