c'mon - I can not believe someone hasn't already written this code. http://bit.ly/JxhV9K
Shared publicly