Updated Hashing Algo for issue #4