Partially implmented agent links
Problems with recursive distance calculations