Added in reading interaction data from a file.