Simplify timeouts handling.