Computing centroids, but not quite doing anything with them yet.