Remake for c++11
Already into a thread

Still freezes interface while in thread…