Adds deprecation warning.