Limit number of retries