Improved all the stuff about distances in isotropic boxes.