This was what I had in mind, and what Blake was suggesting, I think.  Was there code like this here that was recently removed?