Use thread variable for communication, since workers are wrapped in threads.