Fixing deprecation warnings.