It would be nice to skip this term in the sum if the derivative is zero.