Modify hex-calculation related