Changed min distance