Add retry logic for bulk uploading