Refactoring: moved setting variables to a settings objects, to separate from dynamic private variables