Some optimizations.
Some performance optimizations.