Moved findpath into main