Make class take config params