Add procedure to store variables per iteration w/modified bagging schema