Replace global var by argument.
Replace global var by argument.
Merge pull request #75 from JeffreyDF/master

Replace global var by argument.