$b is the queue and $c is the position of 'your' document in the queue.

Nice to have you on-board and good luck, Jooel!
_________________________
The Code is out there