Copied from an issue in Distance but relates to mrds 