Added code to raise events when a new file is read.