Replaced array with hash