Break path finder into different function than user interface