While loops for processing lists.