Add distances and Cartesian coordinates