Prepwork for replication