Finished recovery function