Added a deprecation warning