Currently I have a do until variable is equal to yes loop to read a document and sort that document based on if it finds characteristics. Before this I had the condition functions outside the apply to each functions, but I wanted to make my flow go faster because the condition functions were only checked after the document was fully read, so if the characteristics were already found at page 1 there was a huge bottleneck. To fix this I used a do until function, but now I get put into an infinite loop that keeps on running if no characteristics are found. Is there a way to terminate the do until function when the document is fully read or perhaps there is a better alternative, im pretty new at Power Automate?