Add number of queue classes to shell and tcl scripts