Adds timed wait