Add deprecation warnings.