Removing deprecation warnings.