Added functionality to process the whole set