Initial implementation of clustering is complete.