I'll remove this.  I think I had some code I was planning to chuck in here but managed to refactor it into oblivion.