Updated event trace writing to new (more compact) format.