Modify mdc-replication related codes