Use a slightly faster algorithm.
More math algorithm changes.
One last minor change here.