WTP implementation of queue