Add hex conversion functions