Use warn instead of $stderr.puts.
Use the new Ruby 1.9 Hash syntax.