Scripts for clustering data