[ENHANCE] Optimize script.