Minor update
Add tempfile functionality