Added alternative path calculation method