Path Algorithm Updated