Get rid of deprecation messages