Update Hex.php