Lots of adjustments to reduce the minified size by several kilobytes.