Also save centroids as output.