Remove old distance calculation