Tested and debugged event_tree data structure