Use integers instead of factors for sample number