Added ability to read in file and subset.