Added metadata reading - Added temp file handling - Updated saving process