Attempted (poorly) to implement recover files function.