Added deprecation warning.