Replace deprecated reset method with restore method