Finish replication routines