Cleanup - it's no longer necessary to manually reset global variables.