Adds isWorker flag.