Add retry_attempts attribute