Implemented splitting up batches for replaces as well. (yet have to test this though)