Added tohex script.