.......PS. [ZBX-6353] suggested an improvement where we quit the loop if we take less than 10% of the items