The worker now offers a proper workerCode function which allows to execute the algorithm in a thread and does't have to be transformed into a string for the thread runner