Add edit distance