Added documentation for deprecation warning