Get rid of all deprecation warnings