Working on the hashing algorithm