Improved merging batch data