Stop deprecation warnings.