Added a deprecation warning.