Mods to hashing loop