Make N configurable via query param