Typo in function call _getNumCores corrected