Revert "changed tokens queue to be a singleton rather than a global variable"

This reverts commit db6b2aa96177ed7dc9e79d688624ec4add646956.