Added the option of running wait_until() in a background thread.
Fixed typo.