Changed the sample size (n) to default to 1 instead of (N - 1).