Moved queue ping code into queue code