Wait instead of sleep