Use objects rather than arrays.