Made a few global arrays "static", avoiding namespace pollution. The only