Some runtime optimizations.