Added a type field for each io event.