Rewrite of settings class.