Added ConfigManager to preserve some values. Fixes #221