local function tohex(input) local output = string.format("%x", input * 256) return output