Changed the var table to a static variable which fixed a few compilation issues.