Minor changes to read in data.