Implemented TempFile
Small changes