Removed BatchId from search criteria, restoring to Igor's original code. Realized I don't need it after all.