Renamed handShakeAsApp() to ping().