adds in config options to set distance formula