Lets remove the ``$reset`` - in Drupal7 the convention for reseting is to use ``drupal_static_reset()`` outside the function.