Stopped the script from exiting