Change optimization variable and more