Adding tag similarity and cosine value functions