Fixed reflection warning.
Added enum flags.