Add path finding method