replace time.sleep(waitsec) with system("pause")