Optimizing controls