Added batchRevSize function