Modified method of specifying config, config can now be passed to constructor