Can now correctly read in files