Updated for Ruby 1.9.3.
v1.10.2 - updated for Ruby 1.9. Removed 'reading standard input' output.