Implementing own "batching" method