Added hexValue method.