Update temp file before adding.