Added rule completion detection