finished basic functionality to queue.