Changed the way to iterate a hash.
Removed a useless variable.