Adding savetofile script