Threading path finding