Small improvement to Queue.