Use enums instead of bitwise