Minor nit, but any reason you used '0x0' vs. 0 ( used elsewhere in the function )?