Shouldn't you use |= here just like with the one below? I know it's the first one and hence not a problem, but in the future we might have to add more, and then reorder them alphabetically or something. Perhaps we also should add constants for "0" here and "1" below?