Refactoring recovery process from beginning.
Finish recovery