Put it all together, weightedSimilarity is branched in and working!