Add replication math