Add better script wait functionality.  #29
Clean up pause condition and execute block when used with time interval.  #29