Add pinging functionality