Declare all globals vars and funcs as locals