Implemented necessary batch data structure