Implement litle batch processing