Avoid 'hash' since it's not a pure function anymore