Optimized scripts