Refactored & commented.  Same functionality as before with extraneous delays removed.