Add timeouts.
  Retry queries that fail, up to five times.