Maybe this `flags` keyword should be `struct`?