Add distance to the closest group analysis