Use collections instead of arrays.