Periodic pinging and querying