More on optimization.
Merge branch 'master' of github.com:terjr/thesis