Ruby code written by Clint Pachl and made publicly available.
My code can also be found on RubyGems.org and Bitbucket.