Converted array to hash to make more readable