Switch to a bitmask instead.