Hamming distance modified again. This time tested well.