Pinging and sending data