This way it's generalizable to a threaded worker.