Refactoring timeouts for Condition API.