Minor improvements, make update write to the file.