You use `lastJob.pauseData.length` a bunch, probably store it ?