Default number of threads set to the number of cores of the computer.
Minor performance improvements