Code for EEBoost and ThrEEBoost