Odds and ends...

Trying to fully understand the optimization code.