Added getNumberOfCores()