Update replication.c