Added exit function at the end of the run argument - D'oh!