First cut at finding shortest connection