Integrated madaboost into existing code