Add deprecation to docstring
Support deprecation version