Finished fixing local file reading