Make unintended global variables script local (#97)