Pass variables to bottomup traversal.