Added distances for clustering in EC