Cleanup handling of config channels in RunSyncLoop by passing a map
instead of a bunch of vars.