Finished rule detection count; commented out debug statements