Change to Temp File Handling