Removed some unnecessary calls to hash function.