Added sendPingMessage function