Config refactored to class. UNTESTED