Adapted to new worker flag.