I guess the question is whether it is worth duplicating functionality here.
Would it be possible to update the existing peak finder for N-d, or would
that be prohibitively expensive?