Refactor a touch.
Merge branch 'master' into gh-pages