Var encoding method restructured.
Overhauled var management system.