Declare flags as integer so they can be combined