Optimized code that caused warnings.