Added restore method.