Use types for optimizations.