Splitting logverify into two functions, simplifying logverify complex