Removes deprecation warning from example scripts.