Fixed gradient, objfunval processing.