Insert metadata on download