Fixed issue with wrong variable being used
Merge pull request #5 from jamgregory/master

Fixed issue with wrong variable being used