Change some ArrayLists to LinkedLists.