Able to save temp file as a valid data record.

TO-DO:
Debug with some anomaly that cause the app frozen.
Save record to the record file.