Added debugChecking for ping