Add distance to connections