Got segment matching to work (including counter-rotations).