Improvements for sample size