Code optimizations.