Added thread manager, lets see if we can get this thing to compile soon