Plus don't forget, when you do a Kixtart Sleep(), you are basically suspending the script from executing anything, no events can get through no matter how you slice it, so I would suggest you remove ALL your sleep commands.