Remove global vars.
Merge pull request #8 from gsbitse/remove-global-vars

Remove global vars.