More hacking around with the waiting behavior of this silly script.