Freeze to file function added