Fixed var scoping, was global
Merge pull request #4 from SpacefulSpecies/master

Fixed var scoping, was global