Got QUEUE functions working