Added in some reading/writing of files