Batch processing frameowrk