Added removal of queue elements