Removed repeated Cosine distance.