Updated hash functions