n_min was not documented, and not properly used by sma()