Hamming distance added