Improved the settings class.