Refactored class to use config array instead of verbose setters