Change iterator to list.