Change the way the optimizer gets unstuck.