Flag serialization (tentatively) works