Use the iterator interface to check for queue support. Added some docblocks.