Modified ping to support latencies.