Adding a deprecation warning.