Add deprecation warning

Avoid breaking change, notify user of deprecation and set correct environment variables