Namespacing function variables to prevent external collisions