Switches to using a config object instead of arguments.