Add config to aviod deprecation warnings