Small code improvements in the similarity finder