Update worker.cpp