Moved settings class into library.