Actually do the clustering.