Update for file reading/writing