TMan can be used with cosine similarity or euclidean distance