Added threshold to similarity value