Adding docblocks and move active_queues behavior to a function.