Changed hamming distance parameter