Remove global reference to improve performance
Merge pull request #153 from rison/master

Remove global reference to improve performance