Switching from Hash to array