Added text file creation and return to frm_start