Moved statistics calculations to a separated thread. Improved visualization of statistics results.