Reimplemented dispatch_batch via action (closes #2).