AstartPathfinder refactored.