Lets make this gem 3.0 and 4.0 friendly