After creating a large program, I'm getting a recursion level exceeded error. I know that this means I have a logical loop in the function, but the line that it's giving me the error for doesn't make sense: If $BCPixelCheck1 = 0 AND $BCPixelCheck2 = 0 AND $BCPixelCheck3 = 0 Then I was wondering how to implement a some sort of trace into the program to see where the code is actually looping, and method's to bypass it, as I want it to loop if certain circumstances are met.