Removed distance class, replaced with nodeConnection class