Save scope from global vars