Excellent implementation; exactly what I had in mind.