Implement pings/timeouts.