Added deleteQueue() to listener