Prevents internal function from exiting script