Add a check for hashes