Modify temp file