Added code to clustering of sub-clusters.