Updates to replace primary and restore version