Added Levenshtein distance for calculating diff.