Created a better config class to manage configuration