Many changes for log replication.