Find and visualize valid segment