Use klaus's method to check the hash.