Use iterators instead of lists