Corrected NUMSAMPLES and fixed typo.