Naming of $VAR should be changed.

Also, Do we really need variable variables? I feel like a multidimensional array would at least be easier to read.