Refactored variables to be stored in a specialized structure, rather
than a hodgepodge of collections in Node.