Another try at restoring metadata from file