Scripts/EoE: Optimsations thx to Krofna