New Similarity Function for Issue 457