Ping implementation.