Implemented restoring