Can now set the number of local workers.
Removed problematic @inline.