Move the toHexString and hexToInt to MobUtils.java