Prototype for naive batching