Basic threading setup in worker.