Modified getVar context helper to use a callback rather than return the data directly.
6.1.0