Changed unbounded amount of threads to the amount of available cores