Minor changes to file open