Add global variables as :locals