Removed global variable update