Replication API.