Needs to use the local `run` function as the global is not exported.