Added junky path algorithm