Made WorkerPools, Workers, and Nodes generic.