Added 'type' field in the event