Changed from list of hashes to hash.
Renamed variables due to collision.