Better usage of bitflags