Updated to use rest polling block with exponential backoff retries.