Adding structures for batch replication.
Adding replicate batch manager.