Add treshold distance