Adding custom distance calculators