Tag into temp file, rename afterwards