Running optimizer with more control.