Add on_header event.