Flags support.
Minor reorganization, stub out all methods.