Globals analysis updated to include global keyword