Changed size argument to hex