Working on outputting events to the disk.