Switched from using arrays to ArrayLists.