Add guess_hash function