Reformat config class, less globals; it shouldn't be like this.