Want to add these as configurable attributes?  Maybe max_retries and retry_delay?