Added deprecation warning