Yes, I misunderstood what the code was doing--thanks for the pointer.  Fixing this now.