Added conversions from hex to integer.