Allow to specify N sample