Add support for ping events.