Hashing working correctly