Here's an interesting article that will provide a little background for why I wrote what I did.