Initial version of getQueue, enqueue, dequeue