Introduce polling for a result to handle timeouts.