Made globals accept a hash in addition to an array