Small code optimizations.