Working on batching documents into smaller requests