Worth a read. This clever and simple solution falls into the category of "Why didn't I think of that?"