Some core optimizations.