Added output showing which thread is processing the current task