Modifies Issue #39 patch to select user IDs in batches