Add ping query to keep alive