WaitFor instead of sleep