Added argument for task queue length