Threading, and gui starting point.