Additional functions required by scriptInterpreter