Initial review

The most recent commit message is so accurate.

Death the global variables!

Is there any value in caching it like this?