Removed functions getData() and getVarInfo(). Too many scoping issues!