Added hashing function