Added deprecation warnings.