Implemented restore operation (close #20)