Added type field to events.