Changed multiForEach to forEachBatch