added queues iteration support.