Basic implementation for new path finding API.