Added hashing algorithm