This requires `Worker` to be defined, but it's required below, therefore NameError here