Added Clustering Code