Improved the code when collecting 'pflogsumm' data'