No need to trifle.doEvents() as trifle.wait() will do same thing.