Added a new hashing method