Simple optimizations.