Small refactoring for readability.
Comment.
Sanity check: ensure that all flags were specified.