For some reason it would not read the parameter from the database when using it in the thread. Therefore I initialize the parameters in the init file, which works
Increased version to 0.39 which includes support for old statistics which are being loaded upon start of the package based on the settings of the nr_trend_elements