Exctract global vars
Merge pull request #42 from yguedidi/extract-global-vars

[Proposal] Exctract global vars