I agree. However, since the results were almost circular, I went for the method described above.
Yes, this is what I had in mind. But then I wondered, could you do something else with the max and min distances to define another kind of 'boundary', or is there no other use case for these values...