Add recover_from_glob function, not tested yet