need to get value from resource, rather than uninstantiated local variable
Merge pull request #6 from pauzed/master

Merge PR #6.