Getting the replica setup