Minimal distance could be a method parameter as well.