Minimizing energy below the glass thresholds.

Minimizing energy below the glass thresholds.