Adjust Bagging functions