Finishing optimizations.