Changed Array to Hash