Configure the client queue using a block

Using a block provides access to the `name` attribute.
Change instance variable references to block ones
Merge pull request #452 from bwong114/use_queue_block

Use a block to create the queue