Updated to match AdBoost 1.4.1.