Changed Arrays to Hashes