Do we need to sleep explicitly here? Can we poll the text on regular and small intervals until the text has a token in it or until timeout occurs?