Passing the config param directly in getModel to avoid repopulating of the state.