Remove unused code.
Add recover method.