Update Optimization Flag