let's call it worker.index instead of workerId (since we rely on the property that it's a sequentially increasing index and would have problems if it was any old id). Note you already call it workerIndex in the parameter list, so let's keep that consistent in the context.