Config variable missing from function closure

The default settings are used as appConfig is not populated with anything.