Added flexible hex formatting for standard integers.