Part 2 of code for Generic Workers