Updated hash and translation routine