Adding hashing algorithm