Merge pull request #2 from adam-vessey/7.x

Make the access checks actually check something.
Merge pull request #3 from adam-vessey/7.x

Fix a syntax error and make note of the required library in the README.
Fix the variable name.