Optimizing script blocks.