Compatibility with Ruby 2.0