Removed time wait stuff. It broke when scripts took a long time to run.