Changed array to associative