Fix: flags are now byte, removed Bits imports