Try the Save_Main_File procedure.