[Classes] Optimization and rebalance.