Change to cosine metric.