Added user-specification of N node dist cutoff