public static void dowork() { if (MainV2.instance.FlightPlanner.Created == true) { MainV2.instance.FlightPlanner.updateestimate(); } else threadCreated = false; } }