Bugfix, we were setting queue values by reference when copying from global. Added npm module "clone".