Added chain of events recording.  Also changed total events to compute local/remotely generated counts.