Update flags making them combinable and logical.