ASE Script. More refactoring