Add "ping" handler.