Removed global variable running