Used some neat functionality to create an associative array in less code.