Replace SimpleThread by CalculationThread.