Added sample bagging