Added sys.exit(0)