It is now possible to set the max number of threads in the library interface.