Gem updates
Added some code to silence deprecation warning.