I feel like this might cause memory problems. Can you implement that batching script like you did with Popcorn?