For arbitrary user-specified N.
For arbitrary user-specified N.