Added a way to test if the evaluation has failed
Added the possibility to set the number of threads per custom kernel