Global variable cleanup