Refactored the Config class adding some helper methods.