Number of threads configurable from main.