Changed arrays to lists.