This is unfortunately not a good way to iterate over an array: http://stackoverflow.com/a/500531/525872