Connect worker to devices and pid - first iteration.