Inserted getMinimumDistance