Changed function names to reflect hamming diversity