Algo minor fixes to queue.