Clean up global vars