initial stages of reading the file in, one event at a time.