Various replication enhancements.