Not sure if I understand the question. The shared code is at the top, the master/worker-specific code is here. I'll add a comment.