Add optimizations.