Updated restore from case code.