Modify gem for Heroku compatability