There are a few places where the logical 'and' operator was used to check if a given flag is enabled however that is not the correct operator. The binary 'and' operator should be used where the enum acts as a flag.