Changed createTaskQueue to optionally accept only outer argument