Move fitting process to another thread so that while experiment is running there is no problem with data loss.