Reordered flag parsing.