Small changes to optimization algorithms.