Small optimizations.
Optimized code some.
Optimized code some.