Updated save to file