Added minimum distance