Distance computing almost works!!!