Use hexadecimal in flag functions.