There was a problem in the loop

I didn't ever tell the loop to continue once the threshold was met, so
it was just idling there in the middle of the program.  Now, if the
threshold is not met, the loop ends immediately.