Have calculations run in separate thread from GUI.