Add a config class to provide clear global state.