Reduced and optimized code