Modified getHash