Temp Dir

Implemented the temp saving.