Removed factor for maximum distance, since factor depends on distance measure