Speed optimizations.