And I'll add that WAITSTR allows you to change the string to match at Run-Time.

If you will always be waiting for "all done", use WAIT("all done") instead.