Modifying gem for Redshift support.