Optimized code ...