Optimized code for readability