A few quick optimizations.