Out with arrays, in with collections.