This has a sudo working deptfirst search