Clustering Code Update