The FlagsModule class is great stuff; thanks for refactoring the code into this! It's much more readable this way.