Refactoring and rewriting helper methods in Script, 1.0.5.5