Preparations for script function local variables feature