Removing deprecation warning.