Updated deprecation warning