Added automatic CPU affinity for workers