Fix wait time detection.