This is necessary without the `work()` loop.  It sets up a number of things that allow the worker to work smoothly, and is one of the first things the `work()` loop does, before the loop itself, in fact.